package com.amap.search.entity.db2022;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2023-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("poi_record")
@ApiModel(value="PoiRecord对象", description="")
public class PoiRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "地点id")
    @TableField("poi_id")
    private String poiId;

    @ApiModelProperty(value = "地点名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "地点类型,格式为[大类;中类;小类]")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "地点类型编码")
    @TableField("type_code")
    private String typeCode;

    @ApiModelProperty(value = "区域编码")
    @TableField("address_code")
    private String addressCode;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "特色，一般美食类型才有")
    @TableField("tag")
    private String tag;

    @ApiModelProperty(value = "经纬度")
    @TableField("location")
    private String location;

    @ApiModelProperty(value = "联系电话")
    @TableField("tel")
    private String tel;

    @ApiModelProperty(value = "地图数据更新时间")
    @TableField("record_date")
    private Date recordDate;

    @ApiModelProperty(value = "评分")
    @TableField("rating")
    private BigDecimal rating;

    @ApiModelProperty(value = "人均消费")
    @TableField("cost")
    private BigDecimal cost;

    @ApiModelProperty(value = "地点图片，关联file_record表主键")
    @TableField("photos")
    private String photos;

    @ApiModelProperty(value = "最后更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;


}
